What are the pitfalls of using for await...of with an async generator that makes network calls? How do you handle errors and cancellation?
Pitfalls include unhandled rejections and lack of cancellation. Handle errors with try/catch inside or around the loop. Use AbortController to cancel ongoing requests.